package com.swt.gap.service;

import com.swt.gap.model.entity.SysGroup;
import com.swt.gap.model.entity.SysGroupUser;

import java.util.List;

/**
 * @author sx
 */
public interface SysGroupService {

    Integer addGroup(SysGroup record);

    List<SysGroup> listAllGroup();

    Integer updateGroup(SysGroup record);

    Integer deleteGroup(Integer groupId);

    Integer addGroupUser(SysGroupUser sysGroupUser);

    Integer deleteGroupUser(Integer groupId, Integer userId);

    /**
     * 获取同分组的所有用户
     * @param userId
     * @return
     */
    List<Integer> listSameGroupUserByUserId(Integer userId);
}
